<T:ViewBase x:Class="WPFExcelReport.TMSABWS02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAKTOKL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAKTOKL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAPRODKL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAPRODKL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSANEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSANEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSANEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSANEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAAMONAT1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAAMONAT1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAAMONAT2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAAMONAT2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MSAAMONAT3:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMSABWS.MSAAMONAT3}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsMSABWS,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwMSABWS}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwMSABWS, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="MSAMANDANT"
                                    Binding="{Binding Path=MSAMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAKTOKL"
                                    Binding="{Binding Path=MSAKTOKL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAKTOKL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAPRODKL"
                                    Binding="{Binding Path=MSAPRODKL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAPRODKL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAENZL"
                                    Binding="{Binding Path=MSAAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAENB"
                                    Binding="{Binding Path=MSAAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAEND"
                                    Binding="{Binding Path=MSAAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSANEUB"
                                    Binding="{Binding Path=MSANEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSANEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSANEUD"
                                    Binding="{Binding Path=MSANEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSANEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAMONAT1"
                                    Binding="{Binding Path=MSAAMONAT1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAMONAT1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAMONAT2"
                                    Binding="{Binding Path=MSAAMONAT2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAMONAT2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAMONAT3"
                                    Binding="{Binding Path=MSAAMONAT3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAMONAT3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAMONAT4"
                                    Binding="{Binding Path=MSAAMONAT4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAMONAT4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAMONAT5"
                                    Binding="{Binding Path=MSAAMONAT5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAMONAT5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAPROZ1"
                                    Binding="{Binding Path=MSAAPROZ1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAPROZ1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAPROZ2"
                                    Binding="{Binding Path=MSAAPROZ2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAPROZ2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAPROZ3"
                                    Binding="{Binding Path=MSAAPROZ3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAPROZ3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAPROZ4"
                                    Binding="{Binding Path=MSAAPROZ4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAPROZ4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAAPROZ5"
                                    Binding="{Binding Path=MSAAPROZ5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAAPROZ5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAEINGKZ"
                                    Binding="{Binding Path=MSAEINGKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAEINGKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWMONAT1"
                                    Binding="{Binding Path=MSARWMONAT1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWMONAT1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWMONAT2"
                                    Binding="{Binding Path=MSARWMONAT2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWMONAT2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWMONAT3"
                                    Binding="{Binding Path=MSARWMONAT3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWMONAT3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWMONAT4"
                                    Binding="{Binding Path=MSARWMONAT4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWMONAT4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWMONAT5"
                                    Binding="{Binding Path=MSARWMONAT5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWMONAT5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWPROZ1"
                                    Binding="{Binding Path=MSARWPROZ1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWPROZ1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWPROZ2"
                                    Binding="{Binding Path=MSARWPROZ2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWPROZ2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWPROZ3"
                                    Binding="{Binding Path=MSARWPROZ3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWPROZ3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWPROZ4"
                                    Binding="{Binding Path=MSARWPROZ4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWPROZ4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSARWPROZ5"
                                    Binding="{Binding Path=MSARWPROZ5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSARWPROZ5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAMINDALT"
                                    Binding="{Binding Path=MSAMINDALT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMINDALT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAZEITRAUM"
                                    Binding="{Binding Path=MSAZEITRAUM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAZEITRAUM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAMANPROZ1"
                                    Binding="{Binding Path=MSAMANPROZ1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMANPROZ1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAMANPROZ2"
                                    Binding="{Binding Path=MSAMANPROZ2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMANPROZ2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAMANPROZ3"
                                    Binding="{Binding Path=MSAMANPROZ3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMANPROZ3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAMANPROZ4"
                                    Binding="{Binding Path=MSAMANPROZ4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMANPROZ4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAMANPROZ5"
                                    Binding="{Binding Path=MSAMANPROZ5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMANPROZ5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAPROZVON1"
                                    Binding="{Binding Path=MSAPROZVON1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAPROZVON1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAPROZVON2"
                                    Binding="{Binding Path=MSAPROZVON2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAPROZVON2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAPROZVON3"
                                    Binding="{Binding Path=MSAPROZVON3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAPROZVON3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAPROZBIS1"
                                    Binding="{Binding Path=MSAPROZBIS1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAPROZBIS1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAPROZBIS2"
                                    Binding="{Binding Path=MSAPROZBIS2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAPROZBIS2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAPROZBIS3"
                                    Binding="{Binding Path=MSAPROZBIS3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAPROZBIS3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAMEINST"
                                    Binding="{Binding Path=MSAMEINST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMEINST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAMBEWPR"
                                    Binding="{Binding Path=MSAMBEWPR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAMBEWPR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAINVBEWPR"
                                    Binding="{Binding Path=MSAINVBEWPR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAINVBEWPR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAKZBS"
                                    Binding="{Binding Path=MSAKZBS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAKZBS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MSAFILLER"
                                    Binding="{Binding Path=MSAFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MSAFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
